package com.free.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.free.common.core.annotation.Excel;
import com.free.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 随机的次数对象 note_random_count
 *
 * @author free
 * @date 2023-06-01
 */
@Data
public class NoteRandomCount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 笔记的ID
     */
    @Excel(name = "笔记的ID")
    private Long noteId;

    /**
     * 随机的次数
     */
    @Excel(name = "随机的次数")
    private Long randomCount;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("noteId", getNoteId())
                .append("randomCount", getRandomCount())
                .toString();
    }
}
